
/*
 待点评的信息控制器
 1.0 mouse 2016/07/16
 */
appController.controller('stayCommentCtrl',['$scope',function($scope){
    $scope.col = 'Create_time';
    $scope.desc = 0;
    $scope.date=[
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"圾苦脸，革人有",department:"监区",Create_time:"1940/3/4"},
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监区",Create_time:"1459/3/4"},
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监区",Create_time:"1905/3/4"},
        {information_profile:"阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"显性任务派遣类",input_person_id:"",department:"监区",Create_time:"1940/3/4"},
        {information_profile:"二月份",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监狱",Create_time:"1940/3/4"},
        {information_profile:"肤革脸",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监狱",Create_time:"1940/3/4"},
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监狱",Create_time:"1940/3/4"}
    ];
    for(var i=0;i<$scope.date.length;i++)
    {
        if($scope.date[i].information_profile.length>14)
            $scope.date[i].information_profile=$scope.date[i].information_profile.substring(0,15)+"...";
    }
    $scope.submitInfo=function(id){

        jq('#myModal').modal('show');

    }

}])

/*
 点评控制器
 1.0 mouse 2016/07/16
 */
appController.controller('infoCommentCtrl',['$scope',function($scope){

}])

/*
 （点评下）查看详情控制器
 1.0 mouse 2016/07/16
 */
appController.controller('infoDetailCtrl',['$scope',function($scope){

}])
/*
 测试点评的信息控制器
 1.0 mouse 2016/07/16
 */
appController.controller('commentFinishCtrl',['$scope',function($scope){
    $scope.col = 'Create_time';
    $scope.desc = 0;
    $scope.date=[
        {Information_id:"216446",user_id:"16875",content:"点评内容上啥阿斯蒂芬",Information_quality_id:"一级",task_completion_id:"一级",Create_time:"1940/3/4",Is_enable:"是"},
        {Information_id:"216446",user_id:"16875",content:"点评内容上",Information_quality_id:"二级",task_completion_id:"一级",Create_time:"1940/2/4",Is_enable:"是"},
        {Information_id:"216446",user_id:"16875",content:"点评斯蒂芬",Information_quality_id:"一级",task_completion_id:"一级",Create_time:"1940/3/4",Is_enable:"是"},
        {Information_id:"216446",user_id:"16875",content:"点评内容蒂芬",Information_quality_id:"一级",task_completion_id:"一级",Create_time:"2016/3/4",Is_enable:"是"},
        {Information_id:"216446",user_id:"16875",content:"点评内容上啥阿蒂芬",Information_quality_id:"一级",task_completion_id:"一级",Create_time:"1940/3/4",Is_enable:"是"},
    ]
    for(var i=0;i<$scope.date.length;i++)
    {
        if($scope.date[i].content.length>14)
            $scope.date[i].content=$scope.date[i].content.substring(0,15)+"...";
    }
}])

/*
 已点评的信息控制器
 1.0 mouse 2016/07/16
 */
appController.controller('finishCommentCtrl',['$scope',function($scope){
    $scope.col = 'Create_time';
    $scope.desc = 0;
    $scope.date=[
        {Information_id:"5168",user_id:"231",content:"完成情况良好，dddd",Information_quality_id:"优",task_completion_id:"良",department:"监区",Create_time:"2016/8/7",Is_enable:"是",borseCount:"15",borwsePerson:"张三，李四"},
        {Information_id:"5168",user_id:"231",content:"完成情况良好，dddd",Information_quality_id:"优",task_completion_id:"良",department:"监区",Create_time:"2016/8/7",Is_enable:"是",borseCount:"15",borwsePerson:"张三，李四"},
        {Information_id:"5168",user_id:"231",content:"完成情况良好，dddd",Information_quality_id:"优",task_completion_id:"良",department:"监区",Create_time:"2016/8/7",Is_enable:"是",borseCount:"15",borwsePerson:"张三，李四"},
        {Information_id:"5168",user_id:"231",content:"完成情况良好，dddd",Information_quality_id:"优",task_completion_id:"良",department:"监狱",Create_time:"2016/8/7",Is_enable:"是",borseCount:"15",borwsePerson:"张三，李四"},
        {Information_id:"5168",user_id:"231",content:"完成情况良好，dddd",Information_quality_id:"优",task_completion_id:"良",department:"监狱",Create_time:"2016/8/7",Is_enable:"是",borseCount:"15",borwsePerson:"张三，李四"},
        {Information_id:"5168",user_id:"231",content:"完成情况良好，dddd",Information_quality_id:"优",task_completion_id:"良",department:"监狱",Create_time:"2016/8/7",Is_enable:"是",borseCount:"15",borwsePerson:"张三，李四"},
        {Information_id:"5168",user_id:"231",content:"完成情况良好，dddd",Information_quality_id:"优",task_completion_id:"良",department:"监区",Create_time:"2016/8/7",Is_enable:"是",borseCount:"15",borwsePerson:"张三，李四张三，李四张三，李四"},
    ];
    for(var i=0;i<$scope.date.length;i++)
    {
        if($scope.date[i].content.length>4)
            $scope.date[i].content=$scope.date[i].content.substring(0,4)+"...";
        if($scope.date[i].borwsePerson.length>4)
            $scope.date[i].borwsePerson=$scope.date[i].borwsePerson.substring(0,4)+"...";
    }
    $scope.submitInfo=function(id){

        jq('#myModal').modal('show');

    }

}])

/*
 所有信息控制器
 1.0 mouse 2016/07/16
 */
appController.controller('allInfoCtrl',['$scope',function($scope){
    $scope.col = 'Create_time';
    $scope.desc = 0;
    $scope.date=[
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"圾苦脸，革人有",department:"监区",Create_time:"1940/3/4"},
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监区",Create_time:"1459/3/4"},
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监区",Create_time:"1905/3/4"},
        {information_profile:"阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"显性任务派遣类",input_person_id:"",department:"监区",Create_time:"1940/3/4"},
        {information_profile:"二月份",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监狱",Create_time:"1940/3/4"},
        {information_profile:"肤革脸",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监狱",Create_time:"1940/3/4"},
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监狱",Create_time:"1940/3/4"}
    ];
    for(var i=0;i<$scope.date.length;i++)
    {
        if($scope.date[i].information_profile.length>14)
            $scope.date[i].information_profile=$scope.date[i].information_profile.substring(0,15)+"...";
    }
}])
/*
 被调配信息控制器
 1.0 mouse 2016/07/16
 */
appController.controller('deployCtrl',['$scope',function($scope){
    $scope.col = 'Create_time';
    $scope.desc = 0;
    $scope.date=[
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"圾苦脸，革人有",department:"监区",Create_time:"1940/3/4",state:"资料不全"},
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监区",Create_time:"1459/3/4",state:"资料不全"},
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监区",Create_time:"1905/3/4",state:"已解决"},
        {information_profile:"阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"显性任务派遣类",input_person_id:"",department:"监区",Create_time:"1940/3/4",state:"已解决"},
        {information_profile:"二月份",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监区",Create_time:"1940/3/4",state:"已结束"},
        {information_profile:"肤革脸",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",department:"监区",Create_time:"1940/3/4",state:"资料不全"},
        {information_profile:"信息简介阿斯蒂芬艺术团阿斯蒂芬",Information_source_id:"生产",Information_classification_id:"一级",Information_sort_id:"情况通报类",input_person_id:"",Create_time:"1940/3/4",department:"监狱",state:"已结束"}
    ];
    for(var i=0;i<$scope.date.length;i++)
    {
        if($scope.date[i].information_profile.length>14)
            $scope.date[i].information_profile=$scope.date[i].information_profile.substring(0,15)+"...";
        if($scope.date[i].state.length>14)
            $scope.date[i].state=$scope.date[i].state.substring(0,15)+"...";
    }
}])

/*
 点评详情控制器
 1.0 mouse 2016/07/19
 */
appController.controller('commitDetailCtrl',['$scope',function($scope){

}])
/*
 调配详情控制器
 1.0 mouse 2016/07/19
 */
appController.controller('deployDetailCtrl',['$scope',function($scope){

}])